<?php
/**
 * @version		$Id: default.php 22338 2011-11-04 17:24:53Z github_bot $
 * @package		Joomla.Site
 * @subpackage	mod_articles_latest
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>
				<div class="w479 fl">
					<?php if ($module->showtitle) { ?>
						<p class="ff4 ph25 bd1B pt30 pb10 cf1 fs14 ttu"><a href="<?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($list[0]->catslug)); ?>"><?php echo $module->title; ?></a></p>
					<?php }; ?>	
					<div>
					<?php foreach ($list as $item) :  ?>
						<div class="pl25 w195 fl cf3">
							<p class="pv15">
													<?php		
															$arr2 = preg_split('/<(IMG|img) /', $item->introtext);
															$arr3 = preg_split('/src=\"/', $arr2[1]);
															$arr4 = preg_split('/\"/', $arr3[1]);
															if(preg_match('/http:/', $arr4[0]))
															{
																$result = $arr4[0];
															}
															else if(preg_match('/^\//', $arr4[0])){
																$result = $u2 . substr($arr4[0],1);
															}
															else
															{
																for($ei = 3; $ei < sizeof($u1) - 1; $ei++)
																{
															
															$u2 .= $u1[$ei] . "/";
																}
																$result = $u2 . $arr4[0];
															}
														  ?>
														  <a href="<?php echo $item->link; ?>">
							<img src="<?php if ($result=="") 
																					echo JURI::base()."/templates/jade/images/image.png";
																					else echo $result; ?>" alt="<?php echo $item->title; ?>" class="bd0" title="<?php echo $item->title; ?>"  width="195" height="99" /></a>
							
							
							</p>
							<p class="ttc"><a class="cf3" href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a></p>
						</div>

					<?php endforeach; ?>	
					</div>
				</div>

